package com.xian;

/**
 * @Author: yanjunfeng
 * @Description: TODO
 * @Date: Created in 上午9:45 2022/7/14
 * @Modified By:
 */

/**
 * 有底薪的销售人员
 */
public class BasePlusSalesEmployee extends  SalesEmployee {
     private double baseSalary;//底薪

    public double getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(double baseSalary) {
        this.baseSalary = baseSalary;
    }

    public BasePlusSalesEmployee(String name,int month,int salesVolume,double baseSalary){
        super(name,month,salesVolume);
        this.baseSalary=baseSalary;
    }

    public double getSalary(){
       return this.baseSalary+this.getSalesVolume()*SalesEmployee.BASE_ROYALTY+this.getSalarybyBri();
    }

}
